package com.group.service;

import pojo.entity.Order;
import pojo.qo.ShopOrder;
import pojo.qo.UserOrder;

import java.util.List;

public interface OrderService {

    int updateOrderStatus(Order order);

    int deleteOrder(Order order);

    List<Order> searchOrderByStatus(Order order);

    List<Order> searchOrderByUserId(Order order);

    List<Order> getSomeOrder(long userId, int page);

    List<ShopOrder> searchOrderByOrderNumber(Order order);

    int addOrder(Order order);

    List<Order> searchAllOrderByOrderNumber(Order order);

    Order selectOrderByOrderId(Long orderNumber);

    List<ShopOrder> searchOrderByUserId2(Order order);
}
